/*
 * option_access.c
 *
 *  Created on: 2012/05/30
 *      Author: guanxiaoying
 */
#include "../coredef.h"
TYPE_OPTIONS DLL_EXPORT COptionInfo;
EXTERNAL_SYMBOL(COptionInfo);
static PSZ getOptStr( AST astIndex ){
	U2 u2Id = stCoreOptAccess.optId.get( astIndex );
	return CCoreGetOptKey( u2Id );
}
VOID COptionInfoInit( VOID ){
	COptionInfo.getMax = stCoreOptAccess.getMax;
	COptionInfo.getOptCmd = getOptStr;
	COptionInfo.getOptParam = stCoreOptAccess.strValue.get;
	COptionInfo.hasParam = stCoreOptAccess.hasParam;
}

